You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clVector Structure > clVector Methods > Rem Method > clVector.Rem Method ([In] TOpenCLMtxVec, [In] TOpenCLMtxVec, int, int, int, int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clVector.Rem Method ([In] TOpenCLMtxVec, [In] TOpenCLMtxVec, int, int, int, int)

Calculates reminder after division X/Y.

Syntax
C#
Visual Basic
public TOpenCLMtxVec Rem([In] TOpenCLMtxVec X, [In] TOpenCLMtxVec Y, int XIndex, int YIndex, int Index, int Len);

Calculation uses the following formula: 

z[i] = x[xi]-y[yi]*Trunc(x[xi]/y[yi]), 

where i in [Index..Index+Len], xi in [XIndex..XIndex+Len], yi in [YIndex..YIndex+Len]. The results will be saved to the calling vector. X must be a real. An exception will be raised if array borders are overrun.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!